#include <stdio.h>
#include "ll_usart.h"
#include "ll_ethernet.h"
int read(int DeviceId)
{
    int (*read_pt)(void) = NULL;
    if(DeviceId == 1)//调用串口程序
    {
        read_pt = usart_read;//指向
    }
    else
    {
        read_pt = ethernet_read;//指向
    }
    read_pt();//运行函数
}
int write(int DeviceId)
{
    int (*write_pt)(void) = NULL;
    if(DeviceId == 1)//调用串口程序
    {
        write_pt = usart_write;//指向
    }
    else
    {
        write_pt = ethernet_write;//指向
    }
    write_pt();//运行函数
}
